cssparser: Don't allow commit_token() on block EOF
authorBenjamin Otte <otte@redhat.com>
Fri, 10 May 2019 15:09:59 +0000 (17:09 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 May 2019 15:28:19 +0000 (17:28 +0200)
commitb76d5bda37ed8983bc3a43781b32a66c24bb8b9d
tree3cb5fb410c20ae33f2eb38af5476eff9829b0d17
parent6f6b07aaaeeb4bd0027deddb95c0ab616a437d4e
cssparser: Don't allow commit_token() on block EOF

When we're at the end of a block and gtk_css_parser_get_token() returns
NULL, gtk_css_parser_commit_token() still consumed the next token.

It does not anymore.

This does not affect the CSS parser, but it exposes issues with the
render parser, which previously just consumed too many closing } tokens
in the past.
gtk/css/gtkcssparser.c